package com.xinzhi.stduyspringboot.conrtoller;


import org.springframework.boot.web.servlet.server.Session;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@Controller
@RequestMapping("/ceshi")
public class Ceshi {

        ArrayList arrays=new ArrayList<>();


    @GetMapping
    @ResponseBody
        void ceshi(Session session){

            arrays.add(session);
            System.out.println(arrays.size());
        }


}
